package org.cytoscape.myapp.cytoscape_app_v1.internal.tasks.visualHideEdge;

import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.work.Task;
import org.cytoscape.work.TaskMonitor;
import org.omg.CORBA.portable.ApplicationException;

public class HideVirtualEdgeTask implements Task {
	
	private CyApplicationManager applicationManager;
	private StateVisualEdge stateVisualEdge;
	
	public HideVirtualEdgeTask(CyApplicationManager applicationManager, StateVisualEdge stateVisualEdge){
		this.applicationManager = applicationManager;
		this.stateVisualEdge=stateVisualEdge;
		
	}

	@Override
	public void run(TaskMonitor taskMonitor) throws Exception {
		taskMonitor.setTitle("Hide Edge");
		taskMonitor.setStatusMessage("Iniciando");
		stateVisualEdge.visible_hide_Edge(applicationManager.getCurrentNetwork(), applicationManager.getCurrentNetworkView());
		taskMonitor.setStatusMessage("Finalizado");
	}

	@Override
	public void cancel() {
		// TODO Auto-generated method stub
		
	}
	
}
